package mvp.levelup.spring.reports;

import mvp.levelup.spring.reports.reporters.IReporter;
import mvp.levelup.spring.reports.writters.IWritter;

/**
 * Created by Valera on 17.08.2014.
 */
public class ReportCreator {
    private IReporter reporter;
    private IWritter writter;

    public ReportCreator(IReporter reporter, IWritter writter) {
        this.reporter = reporter;
        this.writter = writter;
    }

    public void createReport() {
        String report = reporter.createReport();
        writter.writeReport(report);
    }
}
